Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix local API comments for age-restricted videos #3760

Merged

Conversation

absidue
Copy link
Member

@absidue absidue commented Jul 10, 2023

Fix local API comments for age-restricted videos

Pull Request Type

  • Bugfix

Related issue

closes #3738

Description

As the bypassed response comes from an embed client, it doesn't have extras like comments and the watch next feed, so we need to check if the video has comments before switching to the bypassed result.

Screenshots

before:
before, showing the "there are no comments available for this video" message

after:
afterwards, showing the "Click to View Comments" button

Testing

Test some age restricted videos like this one mentioned in the issue https://youtu.be/rrSnnhe53ks or the videos in this playlist: https://www.youtube.com/playlist?list=PLze6c8Dxpjv4eaemhVXYLURZt3Pcrddw5

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 10, 2023 20:52
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 10, 2023
Copy link
Member

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but i saw this nasty error but i that is unrelated to this issue and also looks like an expected error

Capture

@hollownights

This comment was marked as spam.

@FreeTubeBot FreeTubeBot merged commit 35074ef into FreeTubeApp:development Jul 11, 2023
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 11, 2023
@absidue absidue deleted the comments-age-restricted-videos branch July 11, 2023 04:41
@absidue
Copy link
Member Author

absidue commented Jul 11, 2023

@efb4f5ff-1298-471a-8973-3d47447115dc That was very much expected, I designed the android format extraction to log an error as soon as anything was wrong with the response and then to not use said response, because when YouTube breaks the android client they go for it (the idea was that if YouTube broke it, the watch page would still work, just throttled instead of failing entirely. That's why it logged an error with as much information as possible to the console, instead of showing an error toast).

As the android formats were removed in #3759 anyway, it's a none issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Age restricted videos get speed throttled and comments don’t load
6 participants